<script setup>
import CountdownTimer from './components/CountdownTimer.vue'
import StudyPlan from './components/StudyPlan.vue'
import DailyQuote from './components/DailyQuote.vue'
import QuestionBoard from './components/QuestionBoard.vue'
</script>

<template>
  <div class="app">
    <header class="app-header">
      <h1>考研桌面 StudyTable</h1>
      <p class="subtitle">专注考研，成就梦想</p>
    </header>
    
    <main class="main-content">
      <div class="top-section">
        <CountdownTimer />
        <DailyQuote />
      </div>
      
      <div class="bottom-section">
        <StudyPlan />
        <QuestionBoard />
      </div>
    </main>
  </div>
</template>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
  color: white;
}

.app {
  min-height: 100vh;
  padding: 20px;
}

.app-header {
  text-align: center;
  margin-bottom: 40px;
}

.app-header h1 {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.bottom-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .top-section,
  .bottom-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 10px;
  }
  
  .app-header h1 {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .main-content,
  .top-section,
  .bottom-section {
    gap: 20px;
  }
}
</style>
